import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);
import movie from '../pages/movie/movie.vue'
import music from '../pages/music/music.vue'
import musicDetail from '../pages/music/musicDetail.vue'
import movieDetail from '../pages/movie/movieDetail.vue'
import more from '../pages/More/More.vue'
import moreDetail from '../pages/More/moreMusic.vue'
const routes = [
    {
        path:"/music",
        component:music
    },
    {
        path:"/movie",
        component:movie
    },
    {
        path:"/musicDetail/:id",
        name:"musicDetail",
        component:musicDetail
    },
    {
        path:"/movieDetail/:id",
        name:"movieDetail",
        component:movieDetail
    },
    {
        path:"/more",
        name:"more",
        component:more
    },
    {
        path:"/moreDetail/:title",
        name:"moreDetail",
        component:moreDetail
    },
]
const router = new VueRouter({
    routes,
    mode:"history"
})
export default router;